<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
	<div style="margin:0 auto;padding:20px;">
	    <form class="layui-form" action="" id="showForm" autocomplete="off">
	    	<div class="layui-form-item layui-col-xs12">
	            <label class="layui-form-label">所属学校<i class="red">*</i></label>
	            <div class="layui-input-block">
                	<select id="schoolId" lay-filter="schoolId" lay-search="" win-verify="required">
	            	</select>
                </div>
	        </div>
			<div class="layui-form-item layui-col-xs6">
				<label class="layui-form-label">所属院系<i class="red">*</i></label>
				<div class="layui-input-block">
					<select id="facultyId" lay-filter="facultyId" lay-search="" win-verify="required">
					</select>
				</div>
			</div>
			<div class="layui-form-item layui-col-xs6">
				<label class="layui-form-label">所属专业<i class="red">*</i></label>
				<div class="layui-input-block">
					<select id="majorId" lay-filter="majorId" lay-search="" win-verify="required">
					</select>
				</div>
			</div>
			<div class="layui-form-item layui-col-xs6">
				<label class="layui-form-label">所属科目<i class="red">*</i></label>
				<div class="layui-input-block">
					<select id="subjectId" lay-filter="subjectId" lay-search="" win-verify="required">
					</select>
				</div>
			</div>
	        <div class="layui-form-item layui-col-xs6">
		        <label class="layui-form-label">类型<i class="red">*</i></label>
		        <div class="layui-input-block winui-radio">
		            <input type="radio" name="type" value="1" title="公开" />
		            <input type="radio" name="type" value="2" title="私有" checked="checked"/>
		        </div>
		    </div>
		    <div class="layui-form-item layui-col-xs6">
		        <label class="layui-form-label">分数<i class="red">*</i></label>
		        <div class="layui-input-block">
		        	<input type="text" id="fraction" name="fraction" win-verify="required|number" placeholder="请输入分数" class="layui-input"/>
		        </div>
		    </div>
		    <div class="layui-form-item layui-col-xs12">
		        <label class="layui-form-label">知识点</label>
		        <div class="layui-input-block">
		        	<button type="button" class="layui-btn layui-btn-primary layui-btn-xs" id="schoolKnowledgeChoose">知识点选择</button>
		        </div>
		    </div>
		    <div class="layui-form-item layui-col-xs12">
		        <label class="layui-form-label">问题信息<i class="red">*</i></label>
		        <div class="layui-input-block">
		        	<div class="dwQuTypeModel">
						<div class="surveyQuItemBody quDragBody" style="width: 100%;">
							
						</div>
					</div>
		        </div>
		    </div>
		    
		    <div class="layui-form-item layui-col-xs12">
		        <div class="layui-input-block">
		            <button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
		            <button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
		        </div>
		    </div>
	    </form>
	    
	    <!-- 多选选项模板 -->
		<table class="modelHtml">
			<tr id="quChenColumnModel">
				<td class="quChenColumnTd">
					<label class="editAble quCoOptionEdit">新项</label>
					<div class="quItemInputCase">
						<input type="hidden" name="quItemId" value="">
						<input type="hidden" name="isNote" value="0">
						<input type="hidden" name="checkType" value="NO">
						<input type="hidden" name="isRequiredFill" value="0">
					</div>
				</td>
			</tr>
			<tr id="quChenRowModel">
				<td class="quChenRowTd">
					<label class="editAble quCoOptionEdit">新项</label>
					<div class="quItemInputCase">
						<input type="hidden" name="quItemId" value="">
						<input type="hidden" name="isNote" value="0">
						<input type="hidden" name="checkType" value="NO">
						<input type="hidden" name="isRequiredFill" value="0">
					</div>
				</td>
			</tr>
		</table>
		
		<!-- 编辑框 -->
		<div id="dwCommonEditRoot">
			<div class="dwCommonEdit">
				<ul class="dwComEditOptionUl">
					<li class="dwOptionDel">
						<div class=dwQuIcon></div>
					</li>
				</ul>
				<div id="dwComEditContent" contenteditable="true"></div>
			</div>
		</div>
	    
	    <div id="dwCommonDialog">
			<form action="#" id="dwCommonDialogForm">
				<div class="dwCommonRefIcon">
					<div class="dwCommonRefIcon1"></div>
					<div class="dwCommonRefIcon2"></div>
				</div>
				<div class="dwCommonDialogBody">
					<div  class="dwCommonDialogTitle">
						<span id="dwComDialogTitleText">标题文本</span>
						<span id="dwCommonDialogClose" class="closeDialog"></span>
					</div>
					<div class="dwCommonDialogContent">
						<!-- 批量添加，单选 -->
						<div class="dwQuAddMore dwQuDialogCon">
							<div class="dwQuTextSpan">每行一个选项</div>
							<textarea id="dwQuMoreTextarea"></textarea>
							<div class="dwQuDialogBtnCon" >
								<input type="button" value="保存" class="quDialogBtn" id="dwDialogSaveMoreItem"/>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
		
		<script type="text/x-handlebars-template" id="template">
			{{#bean}}
				<div class="initLine"></div>
				<!-- 题目基础信息 -->
				<div class="quInputCase" style="display: none;">
					<input type="hidden" name="quType" value="CHENFBK">
					<input type="hidden" name="quId" value="{{id}}">
					<input type="hidden" name="hv" value="{{hv}}">
					<input type="hidden" name="randOrder" value="{{randOrder}}">
					<input type="hidden" name="cellCount" value="{{cellCount}}">
					<input type="hidden" name="contactsAttr" value="{{contactsAttr}}">
					<input type="hidden" name="contactsField" value="{{contactsField}}">
				</div>
				<div class="surveyQuItem">
					<div class="surveyQuItemContent" style="width: calc(100% - 20px);">
						<div class="quCoTitle">
							<div class="editAble quCoTitleEdit">{{quTitle}}</div>
						</div>
						<div class="layui-tab layui-tab-brief" lay-filter="question-insert-type">
          					<ul class="layui-tab-title">
            					<li class="layui-this">默认</li>
            					<li class=""><img src="../../assets/images/icon/icon-vedio.png" class="layui-title-icon"/>插入视频</li>
								<li class=""><img src="../../assets/images/icon/icon-audio.png" class="layui-title-icon"/>插入音频</li>
            					<li class=""><img src="../../assets/images/icon/icon-picture.png" class="layui-title-icon"/>插入图片</li>
          					</ul>
          					<div class="layui-tab-content">
            					<div class="layui-tab-item layui-show">不插入任何内容</div>
            					<div class="layui-tab-item">
		        					<div class="upload questionVedio"></div>
								</div>
								<div class="layui-tab-item">
									<div class="upload questionAudio"></div>
								</div>
            					<div class="layui-tab-item">
									<div class="upload questionPicture"></div>
								</div>
          					</div>
        				</div>
						<div class="quCoItem">
							<div class="quCoItemLeftChenTableDiv">
								<table class="quCoChenTable" style="width: auto;">
									<tr>
										<td></td>
										{{#each columnTd}}
										<td class="quChenColumnTd">
											<label class="editAble quCoOptionEdit">{{optionName}}</label>
											<div class="quItemInputCase">
												<input type="hidden" name="quItemId" value="{{id}}">
												<input type="hidden" name="isNote" value="{{isNote}}">
												<input type="hidden" name="checkType" value="{{checkType}}">
												<input type="hidden" name="isRequiredFill" value="{{isRequiredFill}}">
											</div>
										</td>
										{{/each}}
									</tr>
									{{#each rowTd}}
									<tr class="quChenRowTr">
										<td class="quChenRowTd">
											<label class="editAble quCoOptionEdit">{{optionName}}</label>
											<div class="quItemInputCase">
												<input type="hidden" name="quItemId" value="{{id}}">
												<input type="hidden" name="isNote" value="{{isNote}}">
												<input type="hidden" name="checkType" value="{{checkType}}">
												<input type="hidden" name="isRequiredFill" value="{{isRequiredFill}}">
											</div>
										</td>
										{{#each ../columnTd}}
										<td>
											<input type="text" class="questionChenColumnValue">
										</td>
										{{/each}}
									</tr>
									{{/each}}
								</table>
							</div>
							<div class="quCoRightTools" style="visibility: visible;">
								<ul class="quCoBottomToolsUl">
									<li class="addColumnOption" title="添加">
										<div class="dwQuIcon"></div>
									</li>
									<li class="addMoreColumnOption" title="批量添加">
										<div class="dwQuIcon"></div>
									</li>
								</ul>
							</div>
						</div>
						<div style="clear: both;"></div>
						<div class="quCoBottomTools" style="visibility: visible;">
							<ul class="quCoBottomToolsUl" >
								<li class="addOption" title="添加"><div class="dwQuIcon"></div></li>
								<li class="addMoreOption" title="批量添加"><div class="dwQuIcon" ></div></li>
							</ul>
						</div>
						<fieldset class="layui-elem-field site-demo-button">
							<legend>是否允许拍照/上传图片</legend>
  							<div>
    							<div class="layui-input-block winui-radio">
            						<input type="radio" name="whetherUpload" value="1" title="是" lay-filter="whetherUpload"/>
            						<input type="radio" name="whetherUpload" value="2" title="否" lay-filter="whetherUpload"/>
        						</div>
  							</div>
						</fieldset>
					</div>
				</div>
			{{/bean}}
		</script>
		
		<script type="text/x-handlebars-template" id="noDataTemplate">
			<div class="initLine"></div>
				<div class="quInputCase" style="display: none;">
					<input type="hidden" name="quType" value="CHENFBK">
					<input type="hidden" name="quId" value="">
					<input type="hidden" name="hv" value="2">
					<input type="hidden" name="randOrder" value="0">
					<input type="hidden" name="cellCount" value="0">
					<input type="hidden" name="contactsAttr" value="0">
					<input type="hidden" name="contactsField" value="0">
				</div>
				<div class="surveyQuItem">
					<div class="surveyQuItemContent" style="width: calc(100% - 20px);">
						<div class="quCoTitle">
							<div class="editAble quCoTitleEdit">题标题？</div>
						</div>
						<div class="layui-tab layui-tab-brief" lay-filter="question-insert-type">
          					<ul class="layui-tab-title">
            					<li class="layui-this">默认</li>
            					<li class=""><img src="../../assets/images/icon/icon-vedio.png" class="layui-title-icon"/>插入视频</li>
								<li class=""><img src="../../assets/images/icon/icon-audio.png" class="layui-title-icon"/>插入音频</li>
            					<li class=""><img src="../../assets/images/icon/icon-picture.png" class="layui-title-icon"/>插入图片</li>
          					</ul>
          					<div class="layui-tab-content">
            					<div class="layui-tab-item layui-show">不插入任何内容</div>
            					<div class="layui-tab-item">
		        					<div class="upload questionVedio"></div>
								</div>
								<div class="layui-tab-item">
									<div class="upload questionAudio"></div>
								</div>
            					<div class="layui-tab-item">
									<div class="upload questionPicture"></div>
								</div>
          					</div>
        				</div>
						<div class="quCoItem">
							<div class="quCoItemLeftChenTableDiv">
								<table class="quCoChenTable" style="width: auto;">
									<tr class="quChenColumnTr">
										<td></td>
										<td class="quChenColumnTd">
											<label class="editAble quCoOptionEdit">列1</label>
											<div class="quItemInputCase">
												<input type="hidden" name="quItemId" value="">
												<input type="hidden" name="isNote" value="0">
												<input type="hidden" name="checkType" value="0">
												<input type="hidden" name="isRequiredFill" value="0">
											</div>
										</td>
										<td class="quChenColumnTd">
											<label class="editAble quCoOptionEdit">列2</label>
											<div class="quItemInputCase">
												<input type="hidden" name="quItemId" value="">
												<input type="hidden" name="isNote" value="0">
												<input type="hidden" name="checkType" value="0">
												<input type="hidden" name="isRequiredFill" value="0">
											</div>
										</td>
									</tr>
									<tr class="quChenRowTr">
										<td class="quChenRowTd">
											<label class="editAble quCoOptionEdit">行1</label>
											<div class="quItemInputCase">
												<input type="hidden" name="quItemId" value="">
												<input type="hidden" name="isNote" value="0">
												<input type="hidden" name="checkType" value="0">
												<input type="hidden" name="isRequiredFill" value="0">
											</div>
										</td>
										<td>
											<input type="text" class="questionChenColumnValue">
										</td>
										<td>
											<input type="text" class="questionChenColumnValue">
										</td>
									</tr>
									<tr class="quChenRowTr">
										<td class="quChenRowTd">
											<label class="editAble quCoOptionEdit">行2</label>
											<div class="quItemInputCase">
												<input type="hidden" name="quItemId" value="">
												<input type="hidden" name="isNote" value="0">
												<input type="hidden" name="checkType" value="0">
												<input type="hidden" name="isRequiredFill" value="0">
											</div>
										</td>
										<td>
											<input type="text" class="questionChenColumnValue">
										</td>
										<td>
											<input type="text" class="questionChenColumnValue">
										</td>
									</tr>
								</table>
							</div>
							<div class="quCoRightTools">
								<ul class="quCoBottomToolsUl" style="visibility: visible;">
									<li class="addColumnOption" title="添加"><div class="dwQuIcon"></div></li>
									<li class="addMoreColumnOption" title="批量添加"><div class="dwQuIcon" ></div></li>
								</ul>
							</div>
						</div>
						<div style="clear: both;"></div>
						<div class="quCoBottomTools" style="visibility: visible;">
							<ul class="quCoBottomToolsUl" >
								<li class="addOption" title="添加"><div class="dwQuIcon"></div></li>
								<li class="addMoreOption" title="批量添加"><div class="dwQuIcon" ></div></li>
							</ul>
						</div>
						<fieldset class="layui-elem-field site-demo-button">
							<legend>是否允许拍照/上传图片</legend>
  							<div>
    							<div class="layui-input-block winui-radio">
            						<input type="radio" name="whetherUpload" value="1" title="是" lay-filter="whetherUpload"/>
            						<input type="radio" name="whetherUpload" value="2" title="否" lay-filter="whetherUpload" checked="true"/>
        						</div>
  							</div>
						</fieldset>
					</div>
				</div>
		</script>
		
	</div>
	<script src="../../assets/lib/layui/layui.js"></script>
   	<script src="../../assets/lib/layui/custom.js"></script>
   	<script src="../../js/schoolQuestionBank/common/common.js"></script>
   	<script type="text/javascript">
		layui.config({base: '../../js/schoolQuestionBank/'}).use('chenFbkAdd');
	</script>
</body>
</html>